/**
 * Copyright (c) 2009 Collaborative Development Group, C.S. Dept., University of Bari
 *
 * All rights reserved. This program and the accompanying materials are made available under
 * the terms of the Eclipse Public License v1.0  which accompanies this distribution, and is 
 * available at http://www.eclipse.org/legal/epl-v10.html
 */
package it.uniba.di.cdg.penelope;

import static org.ops4j.peaberry.Peaberry.service;

import org.osgi.service.event.EventAdmin;
import org.osgi.service.log.LogService;

import com.google.inject.AbstractModule;

/**
 * Provides the basic services for Penelope-based applications.
 */
public class CommonServicesConfig extends AbstractModule {
	/* (non-Javadoc)
	 * @see com.google.inject.AbstractModule#configure()
	 */
	@Override
	protected void configure() {
		// Support
		bind( LogService.class ).toProvider( service( LogService.class ).single() );
		bind( EventAdmin.class ).toProvider( service( EventAdmin.class ).single() );
	}
}
